<h1><?php echo Mozg_Lang::_('CONTROLLER %', $this->ctrl['title']) ?></h1>
<form
	action="<?=htmlspecialchars(Mozg_Router::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'groups', 'action' => 'savemodule')));?>"
	method="post" name="form1">
<table width="100%" class="formTable">
<?
while (list ($k, $v) = each($this->ctrlActions)) {
      
    if (!$v['enabled']) $checked = '';
    else $checked = ' checked';
?>
		    <tr>
		<td width="1"><input id="act_<?php echo $v['id']; ?>" type="checkbox" name="act[]" value="<?=$v['id'];?>"
			<?=$checked;?>></td>
		<td><label for="act_<?php echo $v['id']; ?>" style="text-align: left; width: 100%"><?=Mozg_Lang::_($v['title']);?></label></td>
	</tr>
<?
}
?>
</table>
<table>
	<tr>
		<td class="r">
			<a class="action_button submit" href="#">
				<span><?php echo Mozg_Lang::_('SAVE'); ?></span>
			</a>
		</td>
		<td class="l">
			<a class="action_button" href="<?=htmlspecialchars(Mozg_Router::Get('http')->Create(array('module' => 'admin', 'ctrl' => 'groups', 'action' => 'view', 'id' => $this->group->GetId() , 'ctrlid' => $this->moduleId)));?>">
				<span><?php echo Mozg_Lang::_('BACK'); ?></span>
			</a>
		</td>
	</tr>
</table>
<input type="hidden" name="id" value="<?=$this->group->GetId();?>">
<input type="hidden" name="modid" value="<?=$this->ctrlId;?>">
<input type="hidden" name="ctrlid" value="<?=$this->moduleId;?>">
</form>